const dbconfig = require("../config/database")
const mssql = require("mssql/msnodesqlv8")

function getConnectionPool() {
  return new mssql.ConnectionPool(dbconfig)
  // return new mssql.ConnectionPool('mssql://sa:123456@localhost:1433/SQLEXPRESS')
}
// getConnectionPool().connect().then(pool=>{
//     pool.query()
// })
module.exports = { getConnectionPool }